<template>
	<view>
		<smallLucky v-if="index==0" :fromHome="more"></smallLucky>
		<privilegeActivity :fromHome="more" v-else></privilegeActivity>
		<ending></ending>
	</view>
</template>

<script>
	import smallLucky from './smallLucky/smallLucky.vue'
	import privilegeActivity from './privilegeActivity/privilegeActivity.vue'
	import ending from '@/common/ending.vue'
	export default {
		data() {
			return {
				index: 0,
				more: true
			}
		},
		components:{smallLucky,privilegeActivity,ending},
		onLoad(options) {
			this.index = options.index
			if(this.index==0) {
				uni.setNavigationBarTitle({
					title: '小幸运'
				})
			}else {
				uni.setNavigationBarTitle({
					title: '特权活动'
				})
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	page{
		width: 100%;
		background: #F5F6F9;
	}
</style>
